package cdu.sl.mapper;

import cdu.sl.entity.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserRolesDao extends JpaRepository<UserRole,Integer> {

    List<UserRole> findByUserId(Integer userId);

    void deleteByUserId(Integer userId);

}
